package com.ruoyi.wsc.api;


import com.ruoyi.common.core.constant.SecurityConstants;
import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.wsc.api.domain.TongJi;
import com.ruoyi.wsc.api.factory.RemoteTongJiFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * 用户服务
 * 
 * @author ruoyi
 */
@FeignClient(contextId = "remoteTongJiService", value = ServiceNameConstants.TONG_JI, fallbackFactory = RemoteTongJiFallbackFactory.class)
public interface RemoteTongJiService
{
    @GetMapping("/details/tongji/{id}")
    public AjaxResult tongji(@PathVariable("id") Long id, @RequestHeader(SecurityConstants.FROM_SOURCE) String source);

}
